'''
Created on Aug 28, 2012

@author: kingsfield
'''
import os, sys
_root_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
if not _root_dir in sys.path:
    sys.path.insert(0, _root_dir)
sys.path.insert(0, '/home/kingsfield/software/liblinear-1.91/python')

from util import Util
from liblinear import *
from liblinearutil import *
from datetime import datetime
import time
import multiprocessing
from util import Constant

wordlen = Constant.wordlen
catlen = Constant.catlen
daylen = Constant.daylen
hourlen = Constant.hourlen

train_file = '/home/kingsfield/Desktop/BestBuyPc/old_train.csv'
test_file = '/home/kingsfield/Desktop/BestBuyPc/old_test.csv'

class LibLinWarrper(object):
    
    @classmethod
    def sample_train_dat(cls):
        with open(train_file) as fr:
            raw_data = fr.readlines()
        raw_data = raw_data[1:]

if __name__ == '__main__':
    y, x = [1, -1], [[1, 0, 1], [-1, 0, -1]]
    prob = problem(y, x)
    print 'done'
